package com.neu.pojo;

public class Problem {//问题
	private int id;//问题的id
	private String problem;//问题的内容
	private String type;//问题的类型
	private String optionA;//问题的a选项
	private String optionB;//问题的b选项
	private String optionC;//问题的c选项
	
	//构造
	public Problem() {
		super();
	}
	public Problem(int id) {
		super();
		this.id = id;
	}
	public Problem(int id, String problem, String type, String optionA, String optionB, String optionC) {
		super();
		this.id = id;
		this.problem = problem;
		this.type = type;
		this.optionA = optionA;
		this.optionB = optionB;
		this.optionC = optionC;
	}
	
	//set and get
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getProblem() {
		return problem;
	}
	public void setProblem(String problem) {
		this.problem = problem;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getOptionA() {
		return optionA;
	}
	public void setOptionA(String optionA) {
		this.optionA = optionA;
	}
	public String getOptionB() {
		return optionB;
	}
	public void setOptionB(String optionB) {
		this.optionB = optionB;
	}
	public String getOptionC() {
		return optionC;
	}
	public void setOptionC(String optionC) {
		this.optionC = optionC;
	}
	@Override
	public String toString() {
		return "{\"id\":\"" + id + "\",\"problem\":\"" + problem + "\",\"type\":\"" + type + "\",\"optionA\":\""
				+ optionA + "\",\"optionB\":\"" + optionB + "\",\"optionC\":\"" + optionC + "\"}";
	}
}
